from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _


class CephConfig(AppConfig):
    name = 'ceph'
    verbose_name = _('全局配置')

    def ready(self):
        # 服务启动后的ceph初始化的操作
        from ceph import ceph_settings
        ceph_settings.setup_global_config()
        ceph_settings.setup_ceph_config()
